# Maintainer: Przemyslaw Pawelczyk <przemoc@zoho.com>
pkgname=rhash
pkgver=1.4.4
pkgrel=0
pkgdesc="Utility for calculation and verification of hash sums and magnet links"
url="http://rhash.anz.ru"
arch="all"
license="0BSD"
makedepends="openssl-dev>3"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="https://downloads.sourceforge.net/rhash/rhash-$pkgver-src.tar.gz"
builddir="$srcdir/RHash-$pkgver"

build() {
	# not autotools
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-openssl \
		--disable-openssl-runtime
	make
}

check() {
	make test-shared
}

package() {
	make -j1 DESTDIR="$pkgdir" install install-lib-headers install-lib-shared install-lib-so-link
}

sha512sums="
00a7e5e058b53ce20ae79509815452ed9cb699d1322b678220b72c61dea3ea2f8fa131acfade8bb6d9f6af913f0c3c472330841181b22314b8755166310c946f  rhash-1.4.4-src.tar.gz
"
